package com.pktechan.api.service;

import com.pktechan.api.entity.WxPayOrder;

import java.util.Map;

/**
 * @program: cloudfloating
 * @description: 微信支付接口
 * @author: qx.zhang
 * @create: 2021-03-10 15:26
 **/
public interface WxPayService {
    /**
     * 扫码支付  下单
     *
     * @param paraMap
     * @return
     */
    Map<String, String> doUnifiedOrder(Map<String, String> paraMap);

    /**
     * 订单查询
     *
     * @param outTradeNo
     * @return
     */
    Map<String, String> doOrderQuery(String outTradeNo);

    /**
     * 申请退款
     *
     * @param wxPayOrder
     * @return
     */
    Map<String, String> refundWxPayOrder(WxPayOrder wxPayOrder) throws Exception;
}
